package com.foruo.learn.designmode.command;

import com.foruo.learn.designmode.command.command.CommandA;
import com.foruo.learn.designmode.command.command.CommandB;
import com.foruo.learn.designmode.command.receiver.ReceiverA;
import com.foruo.learn.designmode.command.receiver.ReceiverB;

public class TestMe {

    public static void main(String[] args){
        Invoker invoker = new Invoker();
        invoker.setCommand(new CommandA(new ReceiverA()));
        invoker.run();

        invoker.setCommand(new CommandB(new ReceiverB()));
        invoker.run();
    }
}
